<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="author" content="方小块">
    <title>【7410】2002-2021tfidf</title>
    <style>
        * {
            margin: 0;
            padding: 0
        }
        body {
            background: antiquewhite
        }
        .title {
            text-align: center
        }
        .container{padding-top: 20px}
        .container h1 {
            color: coral;
        }
        .content_wrapper {
            width: 100%;
            display: flex
        }
        .left {
            width: 3%;
            flex: 1;
        }
             .left .text-box {
            background: bisque !important;
            font-weight: bold;
            width: 100%;
            min-width: 100%;
            max-width: 100%;
        }
        .left .text-box:first-child {
            font-size: 18px;
        }
        .right {
            width: 97%;
        }
        .right .row {
            display: flex
        }
        .right:only-child {
            display: inline-block;
            background: aqua !important;
            font-style: italic;
        }

        #box_w {
            width: 100%;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
        }
        #box_w .text-box {
            font-size: 5px;
            flex: 1;
            height: 30px;
            background: antiquewhite;
            border: 1px solid #ccc;
            box-sizing: border-box;
            min-width: 5%;
            max-width: 5%;
            text-align: center;
            line-height: 30px;
            cursor: pointer;
        }
        #box_w .active {
            background: aquamarine;
            font-size: 14px;
        }

        .title_head {
            font-size: 5px;
            font-weight: bold;
            flex: 1;
            height: 30px;
            background: bisque;
            border: 1px solid #ccc;
            box-sizing: border-box;
            text-align: center;
            line-height: 30px;
            cursor: pointer;
        }
        #text_info{margin-top: 20px}
        .footer{position: fixed;bottom: 5px; width: 100%}
        .footer p{text-align: center;font-size: 10px;color: #aaa}
    </style>

</head>
<body>
<div class="container">
    <h1 class="title">2002-2021 Tf-idf</h1>
    <div class="content_wrapper">
        <div class="left">
            <div class="title_head">tfidf</div>
            <div class="title_head">1</div>
            <div class="title_head">2</div>
            <div class="title_head">3</div>
            <div class="title_head">4</div>
            <div class="title_head">5</div>
            <div class="title_head">6</div>
            <div class="title_head">7</div>
            <div class="title_head">8</div>
            <div class="title_head">9</div>
            <div class="title_head">10</div>
            <div class="title_head">11</div>
            <div class="title_head">12</div>
            <div class="title_head">13</div>
            <div class="title_head">14</div>
            <div class="title_head">15</div>
            <div class="title_head">16</div>
            <div class="title_head">17</div>
            <div class="title_head">18</div>
            <div class="title_head">19</div>
            <div class="title_head">20</div>
        </div>
        <div class="right">
            <div class="row">
                <div class="title_head">2002</div>
                <div class="title_head">2003</div>
                <div class="title_head">2004</div>
                <div class="title_head">2005</div>
                <div class="title_head">2006</div>
                <div class="title_head">2007</div>
                <div class="title_head">2008</div>
                <div class="title_head">2009</div>
                <div class="title_head">2010</div>
                <div class="title_head">2011</div>
                <div class="title_head">2012</div>
                <div class="title_head">2013</div>
                <div class="title_head">2014</div>
                <div class="title_head">2015</div>
                <div class="title_head">2016</div>
                <div class="title_head">2017</div>
                <div class="title_head">2018</div>
                <div class="title_head">2019</div>
                <div class="title_head">2020</div>
                <div class="title_head">2021</div>
            </div>
            <div id="box_w">
            </div>
        </div>
    </div>
    <div id="text_info">
        <h3 class="title">🙄</h3>
    </div>
    <div class="footer">
        <p>@AIDM 7410 Group Project</p>
    </div>
</div>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>
    let strs = ['expenditure', 'expenditure', 'expenditure', 'expenditure', 'reserves', 'tax', 'tax', 'tax', 'vehicles', 'students', 'industries', 'land', 'aged', 'industries', 'land', 'art', 'employment', 'reserves', 'city', 'expenditure', 'terms', 'tax', 'duty', 'percent', 'expenditure', 'oneoff', 'like', 'community', 'expenditure', 'expenditure', 'give', 'expenditure', 'population', 'tax', 'expenditure', 'land', 'sports', 'development', 'aliveable', 'scheme', 'real', 'revenue', 'gdp', 'operating', 'tax', 'expenditure', 'elderly', 'sports', 'scheme', 'industries', 'account', 'erb', 'rmb', 'services', 'hospital', 'revenue', 'caring', 'economic', 'devote', 'construction', 'revenue', 'forecast', 'tax', 'fiscal', 'rmb', 'competition', 'challenges', 'financial', 'cooperation', 'services', 'prospects', 'revenue', 'estimate', 'expenditure', 'fashion', 'industries', 'cef', 'growth', 'sports', 'air', 'estimate', 'fiscal', 'estimated', 'health', 'fiscal', 'propose', 'proposal', 'economic', 'green', 'scheme', 'performance', 'estimate', 'growth', 'social', 'trade', 'original', 'society', 'industries', 'economy', 'family', 'growth', 'public', 'social', 'security', 'equivalent', 'fiscal', 'reduction', 'development', 'recurrent', 'inflation', 'economic', 'education', 'land', 'land', 'bonds', 'estimate', 'sharing', 'mentioned', 'tourism', 'development', 'fiscal', 'propose', 'public', 'education', 'securities', 'measures', 'cost', 'projects', 'buildings', 'buildings', 'expenditure', 'original', 'trade', 'fees', 'green', 'tourism', 'development', 'elderly', 'building', 'harbourfront', 'public', 'deficit', 'welfare', 'tax', 'months', 'operating', 'care', 'provide', 'industries', 'cooperation', 'developing', 'recurrent', 'industry', 'enterprises', 'housing', 'market', 'economic', 'tax', 'liveable', 'rating', 'wine', 'increased', 'allocation', 'months', 'sale', 'rates', 'propose', 'wine', 'health', 'economic', 'design', 'protection', 'services', 'pillar', 'rmb', 'industry', 'expenditure', 'financial', 'different', 'epidemic', 'economy', 'gdp', 'security', 'mainland', 'levy', 'social', 'rates', 'economy', 'social', 'health', 'estimates', 'industries', 'gdp', 'film', 'tax', 'groups', 'ethnic', 'expenditure', 'industry', 'facilities', 'reserves', 'march', 'forecast', 'duty', 'forecast', 'dutyfree', 'allowance', 'buildings', 'technology', 'land', 'detail', 'estimated', 'expenditure', 'retirement', 'business', 'forecast', 'minorities', 'fiscal', 'tax', 'services', 'increase', 'estimate', 'education', 'capital', 'rateable', 'tobacco', 'range', 'government', 'education', 'business', 'revised', 'fund', 'trading', 'revenue', 'economic', 'growth', 'budget', 'caringsociety', 'revenue', 'revenue', 'price', 'profits', 'revenue', 'council', 'values', 'health', 'bands', 'properties', 'economic', 'social', 'development', 'places', 'industries', 'mainland', 'measures', 'talents', 'elderly', 'just', 'olympic', 'projects', 'money', 'full', 'estate', 'reserves', 'loss', 'properties', 'profits', 'arts', 'development', 'development', 'pillar', 'students', 'mainland', 'economic', 'social', 'diversified', 'aim', 'offiscal', 'resources', 'industry', 'dutyfree', 'operating', 'vehicle', 'equivalent', 'mainland', 'care', 'internal', 'measures', 'care', 'fund', 'forecast', 'elderly', 'people', 'protection', 'development', 'education', 'services', 'ses', 'development', 'cost', 'quantities', 'duty', 'taxes', 'proposed', 'transaction', 'percent', 'government', 'proposal', 'services', 'care', 'economy', 'tax', 'revenue', 'fostering', 'revenue', 'revised', 'economy', 'resources', 'home', 'quality', 'cut', 'additional', 'reserves', 'welfare', 'rates', 'development', 'community', 'research', 'tobacco', 'housing', 'deficit', 'training', 'original', 'augmenting', 'retail', 'pillar', 'make', 'trade', 'services', 'works', 'civil', 'capital', 'gst', 'rmb', 'futures', 'reserves', 'registration', 'fund', 'financial', 'propose', 'testing', 'social', 'expectancy', 'competitiveness', 'market', 'services', 'progress', 'build', 'fiscal', 'units', 'account', 'generate', 'bonds', 'social', 'revenue', 'duty', 'discuss', 'services', 'government', 'art', 'future', 'development', 'longest', 'diversification', 'recurrent', 'public', 'tax', 'new', 'expenditure', 'offices', 'term', 'reserves', 'health', 'public', 'business', 'subject', 'additional', 'additional', 'rmb', 'education', 'certification', 'community', 'men', 'limitations', 'financial', 'whole', 'use', 'housing', 'areas', 'bond']
    let dom = ''
    strs.forEach((item) => {
        dom += `<div class="text-box ${item}"> ${item}</div>`
    })
    $('#box_w').append(dom)
    $('.text-box').on({
        mouseenter: function () {
            let temp = $(this).attr('class').replace(/text-box /, "")
            $('.' + temp).addClass('active')
            $('#text_info .title').text('😊'+temp+'*'+$('.' + temp).length)
        },
        mouseleave: function () {
            let temp = $(this).attr('class').replace(/text-box /, "").replace(/ active/, "")
            $('.text-box').removeClass('active')
             $('#text_info .title').text('🙄')
        }
    })
</script>
</body>
</html>